﻿using System;


namespace BizElements.BusinessLayer
{
    /// <summary>
    /// Specifies how textual fields are searched.
    /// </summary>
    [Serializable]
    public enum TextSearchMode
    {
        #region Enumerated values.

        /// <summary>
        /// Indicates that <see cref="ISearchEngine"/> will automatically decide how to perform search operation.
        /// </summary>
        Default,

        /// <summary>
        /// <see cref="ISearchEngine"/> will try to find the provided value anywhere in the data source.
        /// </summary>
        AnywhereInText,

        /// <summary>
        /// Provided textual value must match the beginning of the text in the data source.
        /// </summary>
        BeginningOfText,

        /// <summary>
        /// Provided textual value must exactly match the text in the data source.
        /// </summary>
        ExactMatch

        #endregion
    }
}